package com.hp.service;

import com.hp.entity.Role;
import com.hp.result.DataGridResultInfo;
import com.hp.result.SubmitResultInfo;

import java.util.List;

public interface RoleService {
    public DataGridResultInfo page(int page, int rows);

    public SubmitResultInfo addRole(Role role);

    public Role findById(int id);

    public SubmitResultInfo updateRole(Role role);

    public List<Role> findAll();
}
